
import java.util.PriorityQueue;
class Student {

        }
public class Test {
    public static void main(String[] args) {
        //堆->> 优先级队列
        PriorityQueue<Integer> priorityQueue=new PriorityQueue<>();
        priorityQueue.offer(12);
        priorityQueue.offer(5);
        priorityQueue.offer(57);

        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());

        PriorityQueue<Integer>priorityQueue2=new PriorityQueue<>();
        priorityQueue2.offer(new Student());
        priorityQueue2.offer(new Student());

    }
    public static void main1(String[] args) {

     int [] array={27,15,19,18,28,34,65,49,25,37};
        TestHeap testHeap=new TestHeap();
        testHeap.init(array);
        testHeap.createHeap();
       // testHeap.offer(80);
        testHeap.poll();
    }
}
